/*
 * @Author: your name
 * @Date: 2021-04-17 08:46:26
 * @LastEditTime: 2021-04-18 15:35:07
 * @LastEditors: Please set LastEditors
 * @Description: In User Settings Edit
 * @FilePath: \xmall_vue\src\router\routes.js
 */
import Pay from '@/pages/Pay'
import Personal from '@/pages/Personal'
import AllCategory from "@/pages/AllCategory";
import Detail from "@/pages/Detail";
import ShopCart from "@/pages/ShopCart";
import Payinfo from '@/pages/Payinfo'
import PayLoad from '@/pages/PayLoad'
import Login from '@/pages/Login'
import Registered from '@/pages/Registered'
import Home from '@/pages/Home'
import Donation from '@/pages/Donation'
import PaySuccess from '@/pages/PaySuccess'
export default [
  {
    path: '/home',
    component: Home
  },
  {
    path: '/login',
    component: Login,
    meta: {
      isHide: true
    }

  },
  {
    path: '/registered',
    component: Registered,
    meta: {
      isHide: true
    }
  },
  {
    path: '/payLoad',
    component: PayLoad
  },
  {
    name: 'payinfo',
    path: '/payinfo',
    component: Payinfo
  },
  {
    path: '/paysuccess',
    component: PaySuccess
  },
  {
    name: 'pay',
    path: '/pay',
    component: Pay
  },
  {
    path: '/personal',
    component: Personal
  },
  {
    path: '/allcategory',
    component: AllCategory
  },
  {
    name: 'detail',
    path: '/detail/:goodsId?',
    component: Detail
  },
  {
    name: 'shopcart',
    path: '/shopCart/:userId?/:productId?/:productNum?',
    component: ShopCart
  },
  {
    path: '/donation',
    component: Donation
  },
  {
    path: '/',
    component: Home
  }
]